<template>
  <Fragment>
      <h2>{{count}}</h2>
      <button @click="handleCount">+1</button>
  </Fragment>
</template>
<script lang="ts">
import { defineComponent, ref, Fragment } from "vue";

export default defineComponent({
  setup() {
      const count = ref(0)
      
      function handleCount(){
          count.value += 1
      }
      return {
          count,
          handleCount
      }
  },
});
</script>
<style scoped>
</style>
